package scenic.study.arithmetic.math;

import org.apache.log4j.Logger;
import org.junit.Test;

import scenic.MyLogger;

/**
 * Created by scenic on 2017/1/10.
 */

public class TestBookSimple {

    public static Logger logger = MyLogger.get(TestBookSimple.class);

    @Test
    //page 47
    public void testDraw() {
        double x1o = 0.2;
        double xhi = 0.5;
        double ylo = 0.5;
        double yhi = 0.6;
        int T = 1000;

    }


    //回环变位
    public static class Page71_1_2_6 {

        @Test
        public void execute() {
            logger.debug(check("actgacg", "tgacgac"));
        }

        public boolean check(String s1, String s2) {
            int length1 = s1.length();
            int length2 = s2.length();
            if (length1 == length2) {
                return (s2 + s2).contains(s1);
            } else {
                return false;
            }
        }


    }



}
